package cn.com.surker.enums.oa;

import cn.com.surker.enums.IDescription;

/**
 * @Author lucky
 * @create 2023年10月23 9:54
 * @desc
 */
public enum OaControlEnum implements IDescription {

    Text(0, "Text","文本"), Textarea(1, "Textarea","多行文本"),
    Number(2, "Number", "数字"), Money(3, "Money", "金额"),
    Date(4, "Date", "日期"), Selector(5, "Selector", "单选/多选"),
    Contact(6, "Contact", "成员/部门"), Tips(7,  "Tips","补休"),
    File(8, "File","附件") , Table(9, "Table", "明细"),
    Attendance(10, "Attendance","假勤") , Vacation(11, "Vacation", "请假"),
    PunchCorrection(12, "PunchCorrection","补卡") , DateRange(13, "DateRange", "时长");

//Text-文本；Textarea-多行文本；Number-数字；Money-金额；Date-日期/日期+时间；Selector-单选/多选；；
// Contact-成员/部门；Tips-说明文字；File-附件；Table-明细；Attendance-假勤；Vacation-请假；PunchCorrection-补卡;DateRange-时长

    private final String description;

    private final String name;

    private final Integer code;

    OaControlEnum(Integer code, String name, String description) {
        this.description = description;
        this.code = code;
        this.name = name;
    }

    @Override
    public String getDescription() {
        return description;
    }
    public String getName() {
        return name;
    }

    public Integer getCode() {return code;}
}